﻿USE [TPAMain]
GO

/****** Object:  Table [dbo].[zxysd_ch]    Script Date: 02/01/2018 23:14:07 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[zxysd_ch](
	[销货单号] [varchar](20) NOT NULL,
 CONSTRAINT [PK_zxysd_ch] PRIMARY KEY CLUSTERED 
(
	[销货单号] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

EXEC sys.sp_addextendedproperty @name=N'备注', @value=N'储存已打印长虹电源公司装箱运输单销货单号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'zxysd_ch'
GO

insert into zxysd_ch (销货单号) select xha001 from orxha_table where xha013='Y' and xha007 ='SCCH'
GO
